package com.summer.safe.controller.system;

import com.summer.safe.base.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.beetl.ext.spring.BeetlSpringViewResolver.redirect;

/**
 * druid 监控
 *
 *
 */
@Controller
@RequestMapping("/druid")
public class DruidController extends BaseController {

    @RequiresPermissions("monitor:data:view")
    @GetMapping()
    public String index() {
        return redirect("/druid/index");
    }
}
